;
; Wavewin:  Generic Drivers
; Version:  1.0
; Date:     08/10/2020
;
;
[POLL DEVICES (START)]
DRIVER#=98 &99 &100
TYPE=ASCII
SETMESSAGE=ISREADY++
TXPERIOD=^[^CLK]
TXDELAY=^[^CLK]
RXSTAY=1
RXSTRIP=N00,                       D0, C01, X01, Y1, H06, "POLL DEVICES INITIATED:"
RXSTRIP=N00,                       D0, C01, X01, Y2, H08, "-----------------------"
RXSTRIP=N00, %^[MON]/^[DAY]/^[YR], D0, C08, X01, Y3, H01, "   Date:", @CD
RXSTRIP=N00, %^[HR]:^[MIN]:^[SEC], D0, C08, X01, Y4, H01, "   Time:", @CT
RXSTRIP=N00, %^[^PID],             D0, C08, X21, Y4, H01, "Session:", @CT
;RXVARS=0

[POLL TIMERS (CHECK)]
DRIVER#=99
TYPE=ASCII
ATMESSAGE=ISREADY++
RXSTAY=4
RXSTRIP=N00, %^[WAIT],   D0, C14, X24, Y1, H11, "", V=1,  P0, JC7, J00, M"ISREADY++^@", @TEMP
RXSTRIP=N00, %^[WAIT],   D0, C14, X24, Y1, H11, "", V=0,  P0, JC0, J00, M"RUN;GETEVES", @TEMP
RXSTRIP=N00, %^XRUN,     D0, C14, X24, Y1, H11, "", V=0,  P0, JC0, J00, M"GETSETS",     @TEMP
RXSTRIP=N00, %^XRUN, +1, D0, C14, X24, Y2, H11, "", V>5,  P0, JC0, J01, @XRUN, =0
RXSTRIP=N00, %0,         @XRUN
RXSTRIP=N00, %^YRUN,     D0, C14, X24, Y1, H11, "", V=0,  P0, JC0, J00, M"CHKDATE",     @TEMP
RXSTRIP=N00, %^YRUN, +1, D0, C14, X24, Y2, H11, "", V>70, P0, JC0, J01, @YRUN, =0
RXSTRIP=N00, %0,         @YRUN

[MONITOR MESSAGES PATH]
DRIVER#=100
TYPE=ASCII
DIRMESSAGE=^[^MSG]
TXPERIOD=15
TXDELAY=-5
RXSTAY=2
RXSTRIP=N00,                       D0, C11, X01, Y5, H11, "Poll Upon Demand Check Initiated"
RXSTRIP=N00, %^[MON]/^[DAY]/^[YR], D0, C06, X01, Y6, H01, "   Date:", @CD
RXSTRIP=N00, %^[HR]:^[MIN]:^[SEC], D0, C06, X01, Y7, H01, "   Time:", @CT
RXSTRIP=N00, %^XRUN,               D0, C00, X24, Y6, H02, "Xrun:", @XRUN
RXSTRIP=N00, %^[WAIT],             D0, C00, X24, Y7, H02, "", V=1, P0, JC0, J01, @WTS
RXSTRIP=N00, %ACTIVE,              D0, C00, X24, Y7, H02, "Poll:", J02, @WTS
RXSTRIP=N00, %-DONE-,              D0, C00, X24, Y7, H02, "Poll:", @WTS
;RXSTRIP=N00, %^[WAIT],             D0, C14, X14, Y1, H11, "", V=0, P0, JC0, J00, M"DYNAMIC++^@", @TEMP

[DYNAMIC UPDATE]
DRIVER#=101
TYPE=ASCII
ATMESSAGE=DYNAMIC++
TXCOMMAND=RELOAD^[13;P2;EXIT]
RXSTAY=4

[XMIT FILES DIODE]
DRIVER#=102
TYPE=ASCII
TXPERIOD=60
TXDELAY=-55
TXFILE=C:\EVENTS\*.CEV C:\EVENTS /ARCHIVE
TXFILE=C:\EVENTS\*.SEL C:\EVENTS /ARCHIVE
TXFILE=C:\EVENTS\*.SLH C:\EVENTS /ARCHIVE
TXFILE=C:\EVENTS\*.SET C:\EVENTS /ARCHIVE
TXFILE=C:\EVENTS\*.TXT C:\EVENTS /ARCHIVE
;TXFILE=C:\EVENTS\*.DGN C:\EVENTS=L /ARCHIVE

; This is for Ethernet to SEL-20xx, Orion 5r, or LX without SPASS and serial to IEDs
[LAN-SWITCH, SEL-EVENTS]
DRIVER#=1 &10 &20 &19 &21 &26 &22 &23 &24 &38 &17 &39 &11 &12 &50

; This is for direct Ethernet connection to relays or Ethernet to Orion LX w SPASS and serial to IEDs
[LAN-DIRECT, SEL-EVENTS]
DRIVER#=2 &10 &21 &22 &26 &23 &24 &38 &11 &12 &50

; This is for direct Ethernet connection to relays and DFRs that support FTP
[LAN-DIRECT, FTP-EVENTS]
DRIVER#=3 &10 &49 &11 &12 &51

; This is for Ethernet to SEL-20xx, Orion 5r, or LX without SPASS and serial to IEDs
[LAN-SWITCH, ABB-EVENTS]
DRIVER#=30 &10 &20 &19 &41 &43 &17 &39 &11 &12 &44

; This is for direct Ethernet connection to relays or Ethernet to Orion LX w SPASS and serial to IEDs
[LAN-DIRECT, ABB-EVENTS]
DRIVER#=31 &10 &41 &43 &11 &12 &44

; This is for direct Ethernet connection to LPRO/BPRO/TPRO relays
[LAN-DIRECT, XPRO EVENTS]
DRIVER#=5 &10 &46 &47 &11 &12 &51

; This is for direct Ethernet connection to GE UR relays
[LAN-DIRECT, GE-D60 EVES]
DRIVER#=6 &10 &45 &11 &12 &51

; This is for direct Serial com connection to SEL relays
[COM DIRECT, SEL-EVENTS]
DRIVER#=7 &9 &21 &22 &26 &23 &38 &12 &50

[SERIAL CONNECT]
DRIVER#=9
TYPE=ASCII
ATMESSAGE=RUN
SETPORT=1
RXSTAY=2

[ETHERNET CONNECT]
DRIVER#=10
TYPE=ASCII
ATMESSAGE=RUN
TXCOMMAND=^[CONNECT]
RXSTAY=10
RXWAIT=2
RXEND=CONNECT
RXELSE=SERR++^@
RXSTRIP=N00, %ETHERNET CONNECT, @STRMSG
;LOGFILE=^[^MSG]POLL-STS.TXT
;LOGCOMMAND=^[Y]^[MON]^[DAY],  ^[HR]:^[MIN]:^[SEC],  ^[^STN],  ^[^HDR],  ^[^STRMSG]^[13;10]

[ETHERNET DISCONNECT]
DRIVER#=11
TYPE=ASCII
ATMESSAGE=RUN
TXCOMMAND=^[DISCONNECT]
RXSTAY=4
;RENFILE=^[^MSG]^[^STN],^[ID].CAL|^[^MSG]^[^STN],^[ID].DON
;DELFILE=^[^MSG]^[^STN].CAL

[LOG ERRORS]
DRIVER#=12 &13
TYPE=ASCII
ATMESSAGE=SERR++,PERR++,DERR++
RXSTAY=2
LOGFILE=^[^MSG]POLL-ERR-MASTER^[SID].DIG
LOGHEADER=-> DATE,TIME,STATION,DEVICE,ERROR^[13;10]
LOGCOMMAND=^[Y]^[MON]^[DAY],  ^[HR]:^[MIN]:^[SEC],  ^[^STN],  ^[^HDR],  ^[^STRMSG] ERROR^[13;10]

[POLL ERROR, ABORT]
DRIVER#=13
TYPE=ASCII
ATMESSAGE=SERR++,PERR++,DERR++
SETMESSAGE=SDCEND^@
TXCOMMAND=^[DISCONNECT]
RXSTAY=4
;RENFILE=^[^MSG]^[^STN],^[ID].CAL|^[^MSG]^[^STN],^[ID].NCR
;DELFILE=^[^MSG]^[^STN].CAL

[SEL FID]
DRIVER#=16
TYPE=ASCII
ATMESSAGE=RUN
TXCOMMAND=ID^[13]
RXSTAY=5
RXWAIT=2
RXEND==>
;INIT VARS
RXSTRIP=N00, %NoRsp,   @FID
;IS FID ON LINE 1
RXSTRIP=N01, S03, T08, X01, Y01, D00, C02, H11, "", V="FID=SEL, P0, JC00, J01, @TEMP
RXSTRIP=N01, S12, T12, X01, Y01, D00, C02, H11, "", @FID, J04
;IS FID ON LINE 2
RXSTRIP=N02, S01, T08, X01, Y01, D00, C02, H11, "", V="FID=SEL, P0, JC00, J01, @TEMP
RXSTRIP=N02, S10, T12, X01, Y01, D00, C02, H11, "", @FID, J02
;IS IT 121-221
RXSTRIP=N02, S01, T07, X01, Y01, D00, C02, H11, "", V=Invalid,  P0, JC00, J01, @TEMP
RXSTRIP=N00, %121-221, @FID

[SEL SWITCH BACKOUT SET]
DRIVER#=17 &18
TYPE=ASCII
ATMESSAGE=RUN,DERR++
RXSTAY=2
RXSTRIP=N00,                    D00, C11, X70, Y6, H11, "Backing Out of Switch"
RXSTRIP=N00, %^CMND3, X01, Y01, D00, C14, H11, "", V=0, P0, JC1, J00, @TEMP
RXSTRIP=N00, %^CMND3, @BCK, =^[04]

[SEL SWITCH BACKOUT]
DRIVER#=18
TYPE=ASCII
ATMESSAGE=RUN,DERR++
TXCOMMAND=^[^BCK]
RXSTAY=15
RXWAIT=3
RXEND=terminated

[SEL SWITCH TO PORT]
DRIVER#=19
TYPE=ASCII
ATMESSAGE=RUN
STARPASS=1
;TXCOMMAND=PORT ^[^ADDR;13]
;TXCOMMAND=^[P2;27;P2]5^[P2]6^[P2;^ADDR;P1;13;10;P2]
TXCOMMAND=^[P2]P^[P2]O^[P2]ZRT ^[P2;^ADDR;P1;13;10;P2]
RXSTAY=10
RXWAIT=3
;RXEND=exitit
RXEND=established
RXELSE=PERR++^@
RXSTRIP=N00, %SWITCH TO PORT ^[ADDR], @STRMSG

[SEL SWITCH LOGON]
DRIVER#=20
TYPE=ASCII
ATMESSAGE=RUN
STARPASS=1
TXCOMMAND=^[^BCK]
TXCOMMAND=^[P1;13]ACC^[13;^CMND;13]
RXSTAY=20
RXWAIT=3
RXEND=Level
RXELSE=SERR++^@
RXSTRIP=N00, %MAIN SWITCH LOGON, @STRMSG

[SEL RELAY LOGON]
DRIVER#=21 &16
TYPE=ASCII
ATMESSAGE=RUN
STARPASS=1
TXCOMMAND=^[13]ACC^[13;^CMND1;13]
RXSTAY=30
RXWAIT=3
RXEND=Level
RXELSE=DERR++^@
RXSTRIP=N00, %DEVICE LOGON, @STRMSG

[SEL EVENTS]
DRIVER#=22
TYPE=ASCII
ATMESSAGE=GETEVES
TXCOMMAND=SEL-EVENTS
SENDCR=60
RXSTAY=30
RXWAIT=4
RXEND==>
RXSTRIP=N00, %., @HT
RXSTRIP=N00, %., @H1
RXSTRIP=N00, %., @H2
RXSTRIP=N00, %., @H3
RXSTRIP=N00, %., @H4
RXSTRIP=N00, %., @H5
RXSTRIP=N00, %., @H6
RXSTRIP=N01, B01, X54, Y03, D00, C14, H11, "", V=HIST, P0, JC0, J08, @TEMP
RXSTRIP=N03, S01, T77, X01, Y01, D00, C02, H11, "", @HT
RXSTRIP=N04, S01, T52, X01, Y02, D00, C14, H11, "", @H1
RXSTRIP=N05, S01, T52, X01, Y03, D00, C08, H11, "", @H2
RXSTRIP=N06, S01, T52, X01, Y04, D00, C08, H11, "", @H3
RXSTRIP=N07, S01, T52, X01, Y05, D00, C08, H11, "", @H4
RXSTRIP=N08, S01, T52, X01, Y06, D00, C08, H11, "", @H5
RXSTRIP=N09, S01, T52, X01, Y07, D00, C08, H11, "", @H6

[SEL SER]
DRIVER#=23
TYPE=ASCII
ATMESSAGE=NEWSERS++
TXCOMMAND=PE-SER+
RXSTAY=30
RXWAIT=4
RXEND==>

[SEL SETTINGS]
DRIVER#=24 &25
TYPE=ASCII
ATMESSAGE=GETSETS
TXCOMMAND=SHO^[13;13;13]SHO G^[13;13;13]Done^[13]
RXSTAY=30
RXWAIT=4
RXEND=>Done
RXSAVECRC=^[^STN],^[^HDR].SET

[SEL SETTINGS ERRORS]
DRIVER#=25
TYPE=ASCII
ATMESSAGE=CRCERR++
RXSTAY=2
RXSTRIP=N00, C08, X70, Y7, H11, "SETTINGS CRC CHANGE DETECTED: ", %^CRCSAVE
LOGFILE=^[^EVE]\SETTINGS-MISMATCH.TXT
LOGHEADER=>DATE, TIME, STATION, DEVICE, EIN, MESSAGE^[13;10]
LOGCOMMAND=^[MON]/^[DAY]/^[YR], ^[HR]:^[MIN]:^[SEC], ^[^STN], ^[^HDR], ^[^SID], CRC ERROR AT LINE: ^[^CRCLINE;13;10]

[SEL CHECK SER]
DRIVER#=26
TYPE=ASCII
ATMESSAGE=GETEVES
TXCOMMAND=SER 1^[13;10]
RXSTAY=30
RXWAIT=4
RXEND==>
RXSTRIP=N00, %OLD,     X60, Y07, D00, C08, H11, "DOSER:", @DOSER
RXSTRIP=N00, %^SERCHK, @PRVCHK
RXSTRIP=N09, B01,      X60, Y06, D00, C08, H11, "", V=1, P0, JC0, J1, @TEMP
RXSTRIP=N09, B03,      X60, Y06, D00, C08, H11, "", @SERCHK, =XXXX, J2
RXSTRIP=N10, B01,      X60, Y06, D00, C08, H11, "", V=1, P0, JC0, J3, @TEMP
RXSTRIP=N10, B03,      X60, Y06, D00, C00, H11, "", @SERCHK
RXSTRIP=N00, %^SERCHK, V~^PRVCHK, P0, JC0, J1, MF"NEWSERS++^@", @TEMP
RXSTRIP=N00, %NEW,     X60, Y07, D00, C00, H11, "DOSER:", @DOSER

[SEL COMMISSIONING FILE]
DRIVER#=29
TYPE=ASCII
ATMESSAGE=GETSETS
TXCOMMAND=ID^[13]VER^[13]STA A^[13]MET DIF^[13]COM 87L^[13]ETH^[13]HIS 50^[13]SER^[13]TIME^[13]TAR YEAR80^[13]TAR TUTCH^[13]TAR DST^[13]TAR BNC_RST^[13]TAR TSYNCA^[13]
RXSTAY=10
RXEND=SYNCA
RXWAIT=4
RXSAVE=^[^MSG]\^[^STN],^[^HDR],COMMISSIONING-FILE,^[YR;MON;DAY],^[HR;MIN;SEC].TXT

[SEL QUIT]
DRIVER#=38
TYPE=ASCII
ATMESSAGE=RUN
TXCOMMAND=QUIT^[13]
RXSTAY=15
RXWAIT=2
RXEND==

[SEL-SWITCH, QUIT]
DRIVER#=39
TYPE=ASCII
ATMESSAGE=RUN,DERR++,PERR++
TXCOMMAND=QUIT^[13]
RXSTAY=15
RXWAIT=2
RXEND=*

[ABB-REL/MDAR METER]
DRIVER#=41
TYPE=HEX
ATMESSAGE=RUN
TXCOMMAND=REL-30X-M
RXSTAY=4
;RXEND=^[17]
RXSTRIP=N15, S1, T11, D0, C8, X01, Y1, H8, "    REL METER: ", @RDT 
RXSTRIP=N0,           D0, C8, X01, Y2, H8, "  --------------------------"
RXSTRIP=N01, S1, T08, D0, C8, X05, Y3, H8, "LOP: ",   @LOP
RXSTRIP=N02, S1, T08, D0, C8, X05, Y4, H8, "LOI: ",   @LOI
RXSTRIP=N03, S1, T08, D0, C8, X05, Y6, H8, "IA: ",    @IA
RXSTRIP=N04, S1, T08, D0, C8, X15, Y6, H8, "Angle: ", @AIA
RXSTRIP=N05, S1, T08, D0, C8, X28, Y6, H8, "VA: ",    @VA
RXSTRIP=N06, S1, T08, D0, C8, X40, Y6, H8, "Angle: ", @AVA
RXSTRIP=N07, S1, T08, D0, C8, X05, Y7, H8, "IB: ",    @IB
RXSTRIP=N08, S1, T08, D0, C8, X15, Y7, H8, "Angle: ", @AIB
RXSTRIP=N09, S1, T08, D0, C8, X28, Y7, H8, "VB: ",    @VB
RXSTRIP=N10, S1, T08, D0, C8, X40, Y7, H8, "Angle: ", @AVB
RXSTRIP=N11, S1, T08, D0, C8, X05, Y8, H8, "IC: ",    @IC
RXSTRIP=N12, S1, T08, D0, C8, X15, Y8, H8, "Angle: ", @AIC
RXSTRIP=N13, S1, T08, D0, C8, X28, Y8, H8, "VC: ",    @VC
RXSTRIP=N14, S1, T08, D0, C8, X40, Y8, H8, "Angle: ", @AVC

[ABB-REL/MDAR METER-RC]
DRIVER#=42
TYPE=HEX
ATMESSAGE=RUN
TXCOMMAND=REL-30X-MRC
RXSTAY=6
RXSTRIP=N0,                    X01, Y1, H1, "  REL METER-RECLOSURE"
RXSTRIP=N0,                    X01, Y2, H1, "  -------------------"
RXSTRIP=N01, S1, T08, D0, C14, X05, Y4, H1, " BUS VOLATGE: ", @LOP
RXSTRIP=N02, S1, T08, D0, C14, X05, Y5, H1, "LINE VOLTAGE: ", @LOI
RXSTRIP=N03, S1, T08, D0, C14, X05, Y6, H1, "       ANGLE: ", @RIA
RXSTRIP=N04, S1, T08, D0, C14, X05, Y7, H1, "   RECL LEFT: ", @RIAA

[ABB-REL/MDAR EVENTS]
DRIVER#=43
TYPE=HEX
ATMESSAGE=RUN
TXCOMMAND=REL-30X
RXSTAY=4
RXSTRIP=N0,                    X52, Y1, H6, "         Scan REL/MDAR Relay"
RXSTRIP=N02, S1, T40, D0, C06, X52, Y3, H1, "              Scan Time: ", @SDT
RXSTRIP=N01, S1, T40, D0, C14, X52, Y4, H1, "                 Status: ", @STS
RXSTRIP=N05, S1, T40, D0, C02, X52, Y6, H0, "     # Files To Extract: ", @TOT
RXSTRIP=N03, S1, T40, D0, C01, X52, Y7, H0, "      # Files Extracted: ", @STE
RXSTRIP=N04, S1, T40, D0, C01, X52, Y8, H0, "       Current File D/T: ", @EDT

[ABB-REL/MDAR VALUES]
DRIVER#=44
TYPE=ASCII
ATMESSAGE=RUN
RXSTAY=2
;SCAN
RXSTRIP=N00, C00, X52, Y1, H6, "         Scan REL/MDAR Relay"
RXSTRIP=N00, C06, X52, Y3, H1, "              Scan Time: ", %^SDT
RXSTRIP=N00, C14, X52, Y4, H1, "                 Status: ", %^STS
RXSTRIP=N00, C02, X52, Y6, H0, "     # Files To Extract:" , %^TOT
RXSTRIP=N00, C01, X52, Y7, H0, "      # Files Extracted: ", %^STE
RXSTRIP=N00, C01, X52, Y8, H0, "       Current File D/T: ", %^EDT
;METER
RXSTRIP=N00, C14, X01, Y1, H1, "   REL METER: ", %^RDT
RXSTRIP=N00, C14, X01, Y2, H1, "  --------------------------"
RXSTRIP=N00, C14, X5,  Y3, H1, "LOP: ",   %^LOP
RXSTRIP=N00, C14, X5,  Y4, H1, "LOI: ",   %^LOI
RXSTRIP=N00, C14, X5,  Y6, H1, "IA: ",    %^IA
RXSTRIP=N00, C14, X15, Y6, H1, "Angle: ", %^AIA
RXSTRIP=N00, C14, X28, Y6, H1, "VA: ",    %^VA
RXSTRIP=N00, C14, X40, Y6, H1, "Angle: ", %^AVA
RXSTRIP=N00, C14, X5,  Y7, H1, "IB: ",    %^IB
RXSTRIP=N00, C14, X15, Y7, H1, "Angle: ", %^AIB
RXSTRIP=N00, C14, X28, Y7, H1, "VB: ",    %^VB
RXSTRIP=N00, C14, X40, Y7, H1, "Angle: ", %^AVB
RXSTRIP=N00, C14, X5,  Y8, H1, "IC: ",    %^IC
RXSTRIP=N00, C14, X15, Y8, H1, "Angle: ", %^AIC
RXSTRIP=N00, C14, X28, Y8, H1, "VC: ",    %^VC
RXSTRIP=N00, C14, X40, Y8, H1, "Angle: ", %^AVC

[GE-UR EVENTS]
DRIVER#=45
TYPE=HEX
ATMESSAGE=GETEVES
TXCOMMAND=GE-G30
RXSTAY=8
RXSTRIP=N00,                       D0, C11, X1, Y1, H11, "Scan GE-G30 Events"
RXSTRIP=N00, %^ADDR,               D0, C09, X1, Y2, H01, "Slave ID:", @DID
RXSTRIP=N00, %^[MON]/^[DAY]/^[YR], D0, C06, X1, Y3, H01, "    Date:", @CD
RXSTRIP=N00, %^[HR]:^[MIN]:^[SEC], D0, C06, X1, Y4, H01, "    Time:", @CT
RXSTRIP=N01, S1, T40,              D0, C00, X1, Y5, H01, "  Status:", @STS
RXSTRIP=N03, S1, T40,              D0, C02, X1, Y6, H01, " TotRead:", @TOT
RXSTRIP=N04, S1, T40,              D0, C01, X1, Y7, H15, "LstFault:", @FDT
RXSTRIP=N05, S1, T40,              D0, C01, X1, Y8, H15, " TotLeft:", @BUF

[LPRO/T/B LOGON]
DRIVER#=46 
TYPE=HEX
ATMESSAGE=GETEVES
TXCOMMAND=76 74 31 30 30^[13;10;P4]
TXCOMMAND=76 69 65 77^[13;10;P8]
TXCOMMAND=^[^CMND1;P2]1B 4F 51^[P8]
RXSTAY=10
RXSTRIP=N00,                       D00, C11, X01, Y01, H11, "Scan LPRO/T/B Events"
RXSTRIP=N00, %^ADDR,               D00, C14, X01, Y02, H01, "  ID/DIR:", @DID
RXSTRIP=N00, %^[MON]/^[DAY]/^[YR], D00, C06, X01, Y03, H01, "    Date:", @CD
RXSTRIP=N00, %^[HR]:^[MIN]:^[SEC], D00, C06, X01, Y04, H01, "    Time:", @CT
RXSTRIP=N00,                       D00, C14, X01, Y05, H01, "  Status: Login"

[LPRO/T/B EVENTS]
DRIVER#=47
TYPE=HEX
ATMESSAGE=GETEVES
TXCOMMAND=ERL-RELAYS
RXSTAY=10
RXSTRIP=N00,                       D00, C11, X01, Y01, H11, "Scan LPRO/T/B Events"
RXSTRIP=N00, %^ADDR,               D00, C14, X01, Y02, H01, "  ID/DIR:", @DID
RXSTRIP=N00, %^[MON]/^[DAY]/^[YR], D00, C06, X01, Y03, H01, "    Date:", @CD
RXSTRIP=N00, %^[HR]:^[MIN]:^[SEC], D00, C06, X01, Y04, H01, "    Time:", @CT
RXSTRIP=N01, S1, T40,              D00, C14, X01, Y05, H01, "  Status:", @STS
RXSTRIP=N03, S1, T40,              D00, C02, X01, Y06, H01, " TotRecs:", @TOT
RXSTRIP=N02, S1, T40,              D00, C01, X01, Y07, H15, "LstFault:", @FDT
RXSTRIP=N04, S1, T40,              D00, C01, X01, Y08, H15, "  RecNum:", @BUF
RXSTRIP=N05, S1, T40,              D00, C01, X34, Y08, H15, "FileName:", @FAF

[FTP EVENTS]
DRIVER#=49
TYPE=ASCII
ATMESSAGE=GETEVES
TXCOMMAND=FTP-EVENTS
RXSTAY=4
RXSTRIP=N00,                       D00, C11, X01, Y01, H11, "Scan FTP Events (READ)"
RXSTRIP=N01, S1, T16,              D00, C14, X01, Y02, H01, "  Folder:", @DID
RXSTRIP=N00, %^[MON]/^[DAY]/^[YR], D00, C06, X01, Y03, H01, "    Date:", @CD
RXSTRIP=N00, %^[HR]:^[MIN]:^[SEC], D00, C06, X01, Y04, H01, "    Time:", @CT
RXSTRIP=N03, S1, T40,              D00, C14, X01, Y05, H01, "  Status:", @STS
RXSTRIP=N05, S1, T40,              D00, C02, X01, Y06, H01, " TotRead:", @TOT
RXSTRIP=N06, S1, T40,              D00, C01, X01, Y07, H15, "LstFault:", @FDT
RXSTRIP=N04, S1, T40,              D00, C01, X01, Y08, H15, " TotEves:", @BUF
RXSTRIP=N02, S1, T40,              D00, C02, X37, Y08, H08, "FileSize:", @FAF

[SEL-VALUES]
DRIVER#=50
TYPE=ASCII
ATMESSAGE=GETEVES
RXSTAY=2
;HIST
RXSTRIP=N00, X01, Y01, C02, %^FID
RXSTRIP=N00, X01, Y02, C14, %^H1
RXSTRIP=N00, X01, Y03, C00, %^H2
RXSTRIP=N00, X01, Y04, C00, %^H3
RXSTRIP=N00, X01, Y05, C00, %^H4
RXSTRIP=N00, X01, Y06, C00, %^H5
RXSTRIP=N00, X01, Y07, C00, %^H6

[IED/FTP VALUES]
DRIVER#=51
TYPE=ASCII
ATMESSAGE=GETEVES
RXSTAY=2
;SCAN
RXSTRIP=N00, C11, X1, Y1, H11, "Scan Directory for Events"
RXSTRIP=N00, C14, X1, Y2, H01, "  ID/DIR:", %^DID
RXSTRIP=N00, C06, X1, Y3, H01, "    Date:", %^CD
RXSTRIP=N00, C06, X1, Y4, H01, "    Time:", %^CT
RXSTRIP=N00, C14, X1, Y5, H01, "  Status:", %^STS
RXSTRIP=N00, C02, X1, Y6, H01, " TotRead:", %^TOT
RXSTRIP=N00, C01, X1, Y7, H15, "LstFault:", %^FDT
RXSTRIP=N00, C01, X1, Y8, H15, " TotEves:", %^BUF

[OR5 SWITCH QUIT]
DRIVER#=70
TYPE=ASCII
ATMESSAGE=RUN
TXCOMMAND=^[P2;27;P2]6
RXSTAY=4

[OR5 SWITCH LOGON]
DRIVER#=71
TYPE=ASCII
ATMESSAGE=RUN
TXCOMMAND=^[P2;^CMND;13;P3]ACC^[13;P3;^CMND1;13]
;TXCOMMAND=^[P2]ACC^[13;P4;^CMND;13;P4;^CMND1;13]
;TXCOMMAND=^[P2;^CMND;13;P2;^CMND1;13]
RXSTAY=10
RXEND=Disconnect
RXWAIT=4
RXQUIT=ERR++^@
RXSTRIP=N00, C14, H01, X01, Y07, "PORT-ID:", %^PID, @PORT
RXSTRIP=N00, C06, H01, X01, Y08, "DIAL-AT:", %^[MON]/^[DAY]/^[YR]-, %^[HR]:^[MIN]:^[SEC], @CALL
RXSTRIP=N00, %MAIN OR5 SWITCH LOGON, @STRMSG

[OR5 SWITCH BACKOUT]
DRIVER#=72
TYPE=ASCII
ATMESSAGE=RUN
TXCOMMAND=^[P2;24;P1;24;P1;24;P1;24;P1;24]
RXSTAY=10
RXEND=[2J
RXWAIT=4
RXSTRIP=N01, S01, T40, X01, Y01, D00, C14, H11, ""

[OR5 SWITCH TO PORT]
DRIVER#=73
TYPE=ASCII
ATMESSAGE=RUN
TXCOMMAND=^[P2;27;P2]5^[P3]6^[P3;^ADDR;P2;13]
RXSTAY=10
RXEND=exit
RXWAIT=4
RXSTRIP=N01, S01, T40, X01, Y01, D00, C14, H11, ""

